From: Colin Walters Date: Sat, 21 Jun 2014 21:22:55 +0000 (-0400) Subject: [staticanalysis]: Fix two uses of uninitialized variables X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1158 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d7067975e7beb60a0a3d30fe668952def3d61775;p=ostree.git [staticanalysis]: Fix two uses of uninitialized variables https://bugzilla.gnome.org/show_bug.cgi?id=732020 --- diff --git a/src/libostree/ostree-repo-traverse.c b/src/libostree/ostree-repo-traverse.c index 758c2331..55b91742 100644 --- a/src/libostree/ostree-repo-traverse.c +++ b/src/libostree/ostree-repo-traverse.c @@ -244,7 +244,7 @@ ostree_repo_traverse_commit (OstreeRepo *repo, GCancellable *cancellable, GError **error) { - gboolean ret; + gboolean ret = FALSE; gs_unref_hashtable GHashTable *ret_reachable = ostree_repo_traverse_new_reachable (); diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 45d0fbcb..56766649 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -1888,7 +1888,7 @@ ostree_repo_sign_commit (OstreeRepo *self, gs_unref_object GOutputStream *tmp_signature_output = NULL; gs_unref_variant GVariant *commit_variant = NULL; gs_unref_bytes GBytes *signature_bytes = NULL; - gpgme_ctx_t context; + gpgme_ctx_t context = NULL; gpgme_engine_info_t info; gpgme_error_t err; gpgme_key_t key = NULL;